package org.jeecg.entity.basedata;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecg.enums.base.BaseRentContractEnum;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class BaseRentContractExcel {
    /**项目id*/
    @Excel(name = "项目名称", width = 15)
    @ApiModelProperty(value = "项目id")
    @Dict(dicCode = "id",dictTable="base_project",dicText="name")
    private String ProjectName;
    private String projectId;
    /**楼栋id*/
    @Excel(name = "楼宇名称", width = 15)
    @ApiModelProperty(value = "楼栋id")
    @Dict(dicCode = "id",dictTable="base_floor",dicText="name")
    private String FloorName;
    private String floorId;
    /**房间id*/
    @Excel(name = "房间名称", width = 15)
    @ApiModelProperty(value = "房间id")
    @Dict(dicCode = "id",dictTable="base_room",dicText="name")
    private String roomName;
    private String roomId;
    /**租赁人*/
    @Excel(name = "租赁人", width = 15)
    @ApiModelProperty(value = "租赁人")
    private String customer;
    /**合同编号*/
    @Excel(name = "合同编号", width = 15)
    @ApiModelProperty(value = "合同编号")
    private String code;
    /**合同名称*/
    @Excel(name = "合同名称", width = 15)
    @ApiModelProperty(value = "合同名称")
    private String name;
    /**合同起始日期*/
    @Excel(name = "合同起始日期", width = 20, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "合同起始日期")
    private Date startDate;
    /**合同截止日期*/
    @Excel(name = "合同截止日期", width = 20, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "合同截止日期")
    private Date endDate;

    /**合同状态1:正常 9:过期*/
    @Excel(name = "合同状态", width = 15)
    @ApiModelProperty(value = "合同状态")
    private String statusName;
    private Integer status;
    /**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**创建时间*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    /**备注*/
    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remarks;

}
